using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Lzfy_His_Service.Models
{
    /// <summary>
    /// 退费操作痕迹
    /// </summary>
    [Table("LZFY_REFUND_TASK_OP_LOGS", Schema = "PCA")]
    public class RefundTaskOpLog
    {
        /// <summary>
        /// 关联pca.lzfy_refund_task_detail
        /// </summary>
        [Column("TASK_DETAIL_ID")]
        public long? TaskDetailId { get; set; }

        /// <summary>
        /// 具体操作
        /// </summary>
        [Column("OP_NAME")]
        [MaxLength(20)]
        public string? OpName { get; set; }

        /// <summary>
        /// 用户账号
        /// </summary>
        [Column("USERNAME")]
        [MaxLength(32)]
        public string? Username { get; set; }

        /// <summary>
        /// 用户全名
        /// </summary>
        [Column("FULLNAME")]
        [MaxLength(32)]
        public string? Fullname { get; set; }

        /// <summary>
        /// 关联拨打电话的ActionID
        /// </summary>
        [Column("ACTIONID")]
        [MaxLength(50)]
        public string? ActionId { get; set; }
    }

    /// <summary>
    /// 创建操作日志请求
    /// </summary>
    public class CreateOpLogRequest
    {
        /// <summary>
        /// 关联的任务详情ID
        /// </summary>
        public long TaskDetailId { get; set; }

        /// <summary>
        /// 具体操作
        /// </summary>
        public string OpName { get; set; } = string.Empty;

        /// <summary>
        /// 用户账号
        /// </summary>
        public string Username { get; set; } = string.Empty;

        /// <summary>
        /// 用户全名
        /// </summary>
        public string Fullname { get; set; } = string.Empty;

        /// <summary>
        /// 关联拨打电话的ActionID
        /// </summary>
        public string? ActionId { get; set; }
    }
}